/// 声明的环境
abstract class EnvName {
  /// Log 总开关 环境key
  static const String envLogKey = "LOG_ENABLE";

  /// 文件Log开关 环境key
  static const String envFileLogKey = "FILE_LOG_ENABLE";

  /// 控制台Log开关 环境key
  static const String envConsoleLogKey = "CONSOLE_LOG_ENABLE";

}

/// 获取的配置信息
class Env {
  /// Log 总开关
  static const isLogEnable = bool.fromEnvironment(EnvName.envLogKey, defaultValue: true);

  /// 文件Log开关
  static const isFileLogEnable = bool.fromEnvironment(EnvName.envFileLogKey, defaultValue: true);

  /// 控制台Log开关
  static const isConsoleLogEnable = bool.fromEnvironment(EnvName.envConsoleLogKey, defaultValue: true);

}
